<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <link rel="stylesheet" href="../styles/LoginStyles.css">
    <script src="../scripts/LoginScripts.js"></script>
</head>
<body>
<div class="login-form">
    <h2>用户注册</h2>
    <form id="loginForm" action="register_do.jsp" method="post" onsubmit="return validateForm()">
        <div class="input-group">
            <label for="nickName">名称:</label>
            <input type="text" id="nickName" name="nickName" required>
        </div>
        <div class="input-group">
            <label for="username">用户名:</label>
            <input type="text" id="username" name="username" required>
        </div>
        <div class="input-group">
            <label for="userPwd">密码:</label>
            <input type="password" id="userPwd" name="userPwd" required>
        </div>
        <button type="submit">注册</button>
        <p id="error-message"></p>
    </form>
    <div class="register-link">
        <a href="../login/login.jsp">返回登入</a>
    </div>
</div>
</body>
</html>